//导入设置过 拦截器的axios
import service from './request'
// 登录接口
export function user_login( params = {} ){
    return service.post('/user/login', params );
}
// 注册接口
export function user_register( params = {} ){
    return service.post('/user/register', params );
}
//轮播图接口
export function banner_list( params = {} ){
    return service.get('/banner/list', {params} );
}
//店铺列表接口
export function shop_list( params = {} ){
    return service.get('/shop/list', { params } );
}
//店铺详情接口
export function shop_shopinfo( params = {} ){
    return service.get('/shop/shopinfo', { params } );
}
//店铺收藏列表接口
export function shop_favlist( params = {} ){
    return service.get('/shop/favlist', { params } );
}
//收藏店铺接口
export function shop_fav( params = {} ){
    return service.post('/shop/fav', params );
}
//取消收藏店铺接口
export function shop_unfav( params = {} ){
    return service.post('/shop/unfav', params );
}
//爆爆团接口
export function tuan_list( params = {} ){
    return service.get('/tuan/list', { params } );
}
//购物车列表接口
export function shopcart_list( params = {} ){
    return service.get('/shopcart/list', {params} );
}
//购物车清空接口
export function shopcart_clear( params = {} ){
    return service.post('/shopcart/clear', params );
}
//购物车添加接口add
export function shopcart_add( params = {} ){
    return service.post('/shopcart/add', params );
}